package cn.tedu.fresheveryday.service.impl;

import cn.tedu.fresheveryday.mapper.UserReceiveInfoMapper;
import cn.tedu.fresheveryday.pojo.entity.UserReceiveInfo;
import cn.tedu.fresheveryday.service.IReceiveInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserReceiveInfoServiceImpl implements IReceiveInfoService {
    @Autowired
    private UserReceiveInfoMapper mapper;

    @Override
    public List<UserReceiveInfo> selectByUserId(String userId) {
        return mapper.selectByUserId(userId);
    }

    @Override
    public void updateById(UserReceiveInfo rec) {
        mapper.updateById(rec);
    }

    @Override
    public void insert(UserReceiveInfo rec) {
        mapper.insert(rec);
    }

}